package com.cheer.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 静态常量类
 */
@Component
public class Constant {

    public static final String  SESSION_USERID = "userId";

    public static final String  SESSION_OPENID = "openid";

    public static Boolean IS_DEV;

    @Value("${spring.profiles.active}")
    public void setDev(String dev) {
        if("dev".equals(dev)){
            Constant.IS_DEV = true;
        }else{
            Constant.IS_DEV = false;
        }
    }

}
